package com.xxwu.springlibrary.service;

import com.xxwu.springlibrary.mapper.UserMapper;
import com.xxwu.springlibrary.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public UserInfo getUserInfo(String name) {
        return userMapper.selectUserByUserName(name);
    }
}
